using System;
using System.Collections.Generic;
using System.Text;
using Objects;
using DAL;

namespace BAL
{
    public class BALPhuongThucThanhToan
    {
        BALPhuongThucThanhToan _dal;
        public BALPhuongThucThanhToan()
        {
            _dal = new BALPhuongThucThanhToan();
        }

        public static int Insert_PhuongThucThanhToan(String HinhThuc,String GhiChu, String DuongDan,int Status ,int SapXep)
        {
            DALPhuongThucThanhToan _dal = new DALPhuongThucThanhToan();
            return _dal.Insert_PhuongThucThanhToan(HinhThuc, GhiChu,DuongDan,Status, SapXep);
        }

        public static int Update_PhuongThucThanhToan(int id, String HinhThuc, String GhiChu, String DuongDan, int Status, int SapXep)
        {
            DALPhuongThucThanhToan _dal = new DALPhuongThucThanhToan();
            return _dal.Update_PhuongThucThanhToan(id, HinhThuc, GhiChu, DuongDan, Status, SapXep);
        }

        public static int Delete_PhuongThucThanhToan(int id)
        {
            DALPhuongThucThanhToan _dal = new DALPhuongThucThanhToan();
            return _dal.Delete_PhuongThucThanhToan(id);
        }

        public static List<PhuongThucThanhToan> GetAllItem()
        {
            DALPhuongThucThanhToan _dal = new DALPhuongThucThanhToan();
            return _dal.GetAllItem();
        }

        public static PhuongThucThanhToan GetById(int Id)
        {
            DALPhuongThucThanhToan _dal = new DALPhuongThucThanhToan();
            return _dal.GetById(Id);
        }

    }
}
